package com.linkoog.devtools.http.toolwindow.workbenche.left.http_service.node;

import com.linkoog.devtools.http.raw_index.HttpServiceMethod;
import com.linkoog.devtools.intellij.ui.tree.TreeBaseNode;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class MethodTreeNode extends TreeBaseNode {

    @Getter
    private HttpServiceMethod httpServiceMethod;

    public MethodTreeNode(@NotNull HttpServiceMethod httpServiceMethod, @NotNull String name, String description) {
        super(name, httpServiceMethod.getHttpMethods().get(0).getIcon(), description);
        this.httpServiceMethod = httpServiceMethod;
    }



}
